package xrz.cuanbao.activity.yindao;

import java.util.ArrayList;

import org.xutils.view.annotation.ViewInject;

import com.xrz.sxm.base.activity.Act_HideTop;

import android.support.v4.app.Fragment;
import android.support.v4.view.ViewPager;
import xrz.cuanbao.R;

public class Act_Yindao extends Act_HideTop{
	
	private MyFragmentPagerAdapter m_Adapter;
	
	@ViewInject(R.id.viewpager)
	private ViewPager m_Viewpager;

	@Override
	protected int setContentView() {
		// TODO Auto-generated method stub
		return R.layout.layout_yindao;
	}

	@Override
	protected void initData() {
		ArrayList<Fragment> fragments = new ArrayList<Fragment>();
		fragments.add(new Fragment1());
		fragments.add(new Fragment2());
		fragments.add(new Fragment3());
		m_Adapter = new MyFragmentPagerAdapter(getSupportFragmentManager(), fragments);
		m_Viewpager.setAdapter(m_Adapter);
	}


}
